package DesignPatern.A16_观察者模式.QSB.A01_基础模式;

/**
 * @Author: Du
 * @Date: 2021/8/2 11:52
 */
public class A01_Main
{
    public static void main(String[] args)
    {
        Observer liSi = new LiSi();
        Observer wangSi = new WangSi();
        
        HanFeiZi hanFeiZi = new HanFeiZi();
        
        hanFeiZi.addObserver(liSi);
        hanFeiZi.addObserver(wangSi);
        
        hanFeiZi.haveBreakFast();
        hanFeiZi.haveFun();
    }
}
